package com.yuzhihao.writejvm.format;


/**
 * new数组类型
 *
 * @author yzh
 * @since  2021年12月18日14:18:13
 */
public enum NewarrayTypeEnum {
    //
    BOOLEAN(4,"T_BOOLEAN"),
    CHAR(5,"T_CHAR"),
    FLOAT(6,"T_FLOAT"),
    DOUBLE(7,"T_DOUBLE"),
    BYTE(8,"T_BYTE"),
    SHORT(9,"T_SHORT"),
    INT(10,"T_INT"),
    LONG(11,"T_LONG"),
    ;

    NewarrayTypeEnum(int value, String type) {
        this.value = value;
        this.type = type;
    }

    private final int value;
    private final String type;

    public int getValue() {
        return value;
    }

    public String getType() {
        return type;
    }
}
